package com.zzedu.params;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zzedu.common.annotation.Excel;
import com.zzedu.domain.ZzCourse;
import com.zzedu.vo.TimetableVO;
import jakarta.validation.constraints.NotNull;

import java.time.LocalDate;
import java.util.List;

public class ZzClassesParams {

    /**
     * id
     */
    private Long id;

    /**
     * 班级名称
     */
    @Excel(name = "班级名称")
    private String name;

    /**
     * 班级类型 1-常规班 2-特殊班
     */
    private Integer clzzType;

    /**
     * 上课频率 clzz_type=1 有值
     */
    private Integer frequency;
    /**
     * 校区ID
     */
    private Long schoolId;

    /**
     * 开班日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate startDate;

    /**
     * 结束日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate endDate;

    /**
     * 正常
     */
    @Excel(name = "正常")
    @NotNull(message = "正常不能为空")
    private Integer state;

    /**
     * 学生数
     */
    private Long stuCount;

    /**
     * 对应课程
     */
    private Long courseId;

    /**
     * 级别
     */
    private String level;

    /**
     * 班主任ID
     */
    private Long teacherId;
    /**
     * 开课日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate openDate;

    /**
     * 上课时间 JSON
     * [
     * {
     * "day":1, // 1-7 周一到周日
     * "dayText":"", //星期几
     * "startTime":"08:00", //开始时间
     * "endTime":"12:00" //结束时间
     * }...
     * ]
     */
    private String classTime;
    /**
     * 教室
     */
    private String roomName;
    /**
     * 对应课程
     */
    private String unitIds;
    /**
     * 上课星期时间1
     */
    private String weekTime1;
    /**
     * 上课星期时间2
     */
    private String weekTime2;

    /**
     * 上课时间1
     */
    private String[] classTime1;
    /**
     * 上课时间2
     */
    private String[] classTime2;

    private Integer timetableType;
    /**
     * UNIT集合
     */
    private List<Long> courseIdArray;

    /**
     * 课表数据
     */
    private List<TimetableVO> timetable;
    /**
     *
     */
    private String[] learnTime;
    /**
     * 课程
     */
    private List<ZzCourse> courseArray;

    /**
     * 任课老师
     */
    private String remarkTeachName;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(Long schoolId) {
        this.schoolId = schoolId;
    }

    public LocalDate getStartDate() {
        return startDate;
    }

    public void setStartDate(LocalDate startDate) {
        this.startDate = startDate;
    }

    public LocalDate getEndDate() {
        return endDate;
    }

    public void setEndDate(LocalDate endDate) {
        this.endDate = endDate;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Long getStuCount() {
        return stuCount;
    }

    public void setStuCount(Long stuCount) {
        this.stuCount = stuCount;
    }

    public Long getCourseId() {
        return courseId;
    }

    public void setCourseId(Long courseId) {
        this.courseId = courseId;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public Long getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(Long teacherId) {
        this.teacherId = teacherId;
    }

    public LocalDate getOpenDate() {
        return openDate;
    }

    public void setOpenDate(LocalDate openDate) {
        this.openDate = openDate;
    }

    public String getClassTime() {
        return classTime;
    }

    public void setClassTime(String classTime) {
        this.classTime = classTime;
    }

    public String getRoomName() {
        return roomName;
    }

    public void setRoomName(String roomName) {
        this.roomName = roomName;
    }

    public String getWeekTime1() {
        return weekTime1;
    }

    public void setWeekTime1(String weekTime1) {
        this.weekTime1 = weekTime1;
    }

    public String getWeekTime2() {
        return weekTime2;
    }

    public void setWeekTime2(String weekTime2) {
        this.weekTime2 = weekTime2;
    }

    public String[] getClassTime1() {
        return classTime1;
    }

    public void setClassTime1(String[] classTime1) {
        this.classTime1 = classTime1;
    }

    public String[] getClassTime2() {
        return classTime2;
    }

    public void setClassTime2(String[] classTime2) {
        this.classTime2 = classTime2;
    }

    public Integer getTimetableType() {
        return timetableType;
    }

    public void setTimetableType(Integer timetableType) {
        this.timetableType = timetableType;
    }

    public String getUnitIds() {
        return unitIds;
    }

    public void setUnitIds(String unitIds) {
        this.unitIds = unitIds;
    }

    public List<Long> getCourseIdArray() {
        return courseIdArray;
    }

    public void setCourseIdArray(List<Long> courseIdArray) {
        this.courseIdArray = courseIdArray;
    }

    public List<TimetableVO> getTimetable() {
        return timetable;
    }

    public void setTimetable(List<TimetableVO> timetable) {
        this.timetable = timetable;
    }

    public Integer getClzzType() {
        return clzzType;
    }

    public void setClzzType(Integer clzzType) {
        this.clzzType = clzzType;
    }

    public Integer getFrequency() {
        return frequency;
    }

    public void setFrequency(Integer frequency) {
        this.frequency = frequency;
    }

    public String[] getLearnTime() {
        return learnTime;
    }

    public void setLearnTime(String[] learnTime) {
        this.learnTime = learnTime;
    }

    public List<ZzCourse> getCourseArray() {
        return courseArray;
    }

    public void setCourseArray(List<ZzCourse> courseArray) {
        this.courseArray = courseArray;
    }

    public String getRemarkTeachName() {
        return remarkTeachName;
    }

    public void setRemarkTeachName(String remarkTeachName) {
        this.remarkTeachName = remarkTeachName;
    }
}
